package com.vhly.ddxdecompiler.dexreader.file.dalv.code.reader;

import com.vhly.ddxdecompiler.dexreader.file.dalv.code.DalvInsn;
import com.vhly.ddxdecompiler.dexreader.io.DexInputStream;

import java.io.IOException;


public final class Form23x extends InsnReader {

    public static final InsnReader THE_ONE = new Form23x();

    private Form23x() {
    }

    public void prepair(DalvInsn dalvInsn, int reg) {
        dalvInsn.addRegister(reg);
    }

    public int read(DalvInsn insn, DexInputStream din) throws IOException {
        short c1 = din.readShort();
        int low = c1 & 0x0ff;
        int hight = (c1 >> 8) & 0x0ff;
        insn.addRegister(low);
        insn.addRegister(hight);
        return 1;
    }
}